//
//  GMArtworkInfoView.h
//  gentleman
//
//  Created by 范月成 on 2017/12/6.
//  Copyright © 2017年 fancy. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "GMGallery.h"
#import "GMArtwork.h"
#import "GMUIHelper.h"

@interface GMArtworkInfoItem : UIView

@property (nonatomic, strong) GMGalleryTag *galleryTag;
@property (nonatomic, strong) YYLabel *titleLabel;
@property (nonatomic, strong) YYLabel *tagLabel;

@property (nonatomic, copy) void (^tagTapBlock)(NSString *tag);

- (void)setTitle:(NSString *)title
          detail:(NSString *)detail;

@end

@interface GMArtworkInfoView : UIScrollView

@property (nonatomic, strong) GMGallery *gallery;
@property (nonatomic, strong) GMArtwork *artwork;
@property (nonatomic, strong, readonly) UIButton *refreshButton;
@property (nonatomic, copy) void (^tagTapBlock)(NSString *tag);
@property (nonatomic, copy) void (^refreshBlock)(void);
@property (nonatomic, copy) void (^similarArtBlock)(void);
@property (nonatomic, copy) void (^otherUploadBlock)(void);
@property (nonatomic, copy) void (^thumbTapBlock)(UIImageView *view);

- (void)configUIWithArtwork:(GMArtwork *)artwork
                    gallery:(GMGallery *)gallery;

@end
